package demo02.bean;

import org.springframework.stereotype.Component;

/**
 * Created by ztt on 2017/9/26.
 * 然后，让一个杂技师继承演员的接口，并实现：
 */
@Component
public class Juggler implements Performer{

    private int beanBags=3;

    public Juggler(){

    }

    public Juggler (int beanBags){
        this.beanBags=beanBags;
    }

    @Override
    public void perform()   {
        System.out.println("Juggler(杂技师) "+ beanBags +" beanBags ");

    }
}